package com.dcxm.stu.bean;

/**
 * Created by ASUS on 2017/3/14.
 *
 * @version 1.0
 */
public class Message {

    private boolean flag;
    private String msg;

    public void setText(String text) {
        this.msg = text;
    }

    public String getText() {
        return msg;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public boolean isFlag() {
        return flag;
    }

    public Message(String text, boolean flag) {
        this.flag = flag;
        this.msg = text;
    }

    @Override
    public String toString() {
        return "Message{" +
                "flag=" + flag +
                ", msg='" + msg + '\'' +
                '}';
    }
}
